package com.redoor.iot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 
 * @author Administrator
 * //事务支持
 * @EnableTransactionManagement   //如果mybatis中service实现类中加入事务注解，需要此处添加该注解
 * //MyBatis 支持
 * @MapperScan("com.red.iot.mapper")  //扫描的是mapper.xml中namespace指向值的包位置
 *
 */
@EnableTransactionManagement
@MapperScan("com.red.iot.mapper")
@SpringBootApplication
public class SpringBootIotApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBootIotApplication.class, args);
		
		
		System.out.println("spring boot 启动成功了！");
	}
}
